package zhihui.mobile.bean.shop.category;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 张公铭 on 2017/8/1 0001.
 */

public class CategoryInfo
{
    private int id;
    private int pid = 0;
    private String name;
    private List<CategoryInfo> child = new ArrayList<>();

    public int getId()
    {
        return id;
    }

    public int getPid()
    {
        return pid;
    }

    public String getName()
    {
        return name;
    }

    public List<CategoryInfo> getChild()
    {
        return child;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public void setPid(int pid)
    {
        this.pid = pid;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public void setChild(List<CategoryInfo> child)
    {
        this.child.clear();
        this.child.addAll(child);
    }
}
